package com.heng.groupchat.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@TableName(value = "chat_record")
@Data
public class ChatRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 4688129621774524611L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String username;

    private String content;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;
}
